package com.jfcloud.mall.order.rpc.feign;

import com.jfcloud.common.annotation.CheckToken;
import com.jfcloud.mall.order.domain.dto.UserAccountDeductForm;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import com.jfcloud.common.constants.ServiceNames;
import com.jfcloud.common.http.RespData;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@FeignClient(name =ServiceNames.mall_user)
public interface UserServiceClient{

	@GetMapping(path = "/token/simple/validateAndGet")
	RespData validateAndGet(@RequestParam("token") String token);

	@PostMapping(path = "/user/deduct")
	@ResponseBody
	RespData deduct(@RequestBody UserAccountDeductForm form);
}
